package org.micode.common.syslog;

import lombok.extern.slf4j.Slf4j;
import org.micode.common.domain.base.BaseUserCache;

@Slf4j
public class DefaultSysLogSaver extends AbstractSysLogSaver<DefaultLogVO> {

    private static DefaultSysLogSaver instance = new DefaultSysLogSaver();

    private DefaultSysLogSaver() {
        super(DefaultLogVO.class);
    }

    public static ISysLogSaver<DefaultLogVO> getInstance() {
        return instance;
    }

    @Override
    public void save(DefaultLogVO sysLogVO) {
        log.info(sysLogVO.toString());
    }

    @Override
    protected void fillLogByUserCacheByLogout(DefaultLogVO sysLogVO, BaseUserCache optUser) {
        //
    }

    @Override
    public String getRemoteIp(Object[] args) {
        return "";
    }

    @Override
    public String getLoginApp(Object[] args) {
        return "";
    }

    @Override
    public Integer getUserType(Object[] args) {
        return -1;
    }

    @Override
    public String getParams(Object[] args) {
        return "";
    }

    @Override
    public Long getCurrentUserId(Object[] args) {
        return -1L;
    }

    @Override
    public String getCurrentUserToken(Object[] args) {
        return "";
    }

}
